﻿<UserControl x:Class="Levfier.GUI.EditorControls.Parameters.ParameterSlider"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignWidth="300" Height="32" VerticalAlignment="Top" MouseLeftButtonDown="UserControl_MouseLeftButtonDown">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!--Dark Theme-->
                <ResourceDictionary Source="../../../Themes/Metro/Dark/MetroDark.MSControls.Core.Implicit.xaml" />
                <!--<ResourceDictionary Source="../Dark/MetroDark.MSControls.Toolkit.Implicit.xaml" />-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="3*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="30"/>
        </Grid.ColumnDefinitions>
        <!--1列目-->
        <TextBlock x:Name="minValue" Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="3" Text="{Binding ElementName=parameterSlider, Path=Minimum}" Foreground="{DynamicResource ForegroundBrush}"></TextBlock>
        <TextBlock x:Name="maxValue" Grid.Column="6" Grid.Row="0" Grid.ColumnSpan="3" Text="{Binding ElementName=parameterSlider, Path=Maximum}" Foreground="{DynamicResource ForegroundBrush}"></TextBlock>
        <!--2列目-->
        <TextBlock x:Name="parameterName" Grid.Column="1" Grid.Row="1" Foreground="{DynamicResource ForegroundBrush}"></TextBlock>
        <Polygon x:Name="downButton" Grid.Column="2" Grid.Row="1" Points="6,5 1,9 6,13" Stroke="Gray" Fill="Gray" MouseDown="DownButton_MouseDown"></Polygon>
        <Slider x:Name="parameterSlider" Grid.Column="3" Grid.Row="1" Grid.ColumnSpan="3"/>
        <Polygon x:Name="upButton" Grid.Column="6" Grid.Row="1" Points="4,5 9,9 4,13" Stroke="Gray" Fill="Gray" MouseDown="UpButton_MouseDown"></Polygon>
        <TextBlock x:Name="currentValue" Grid.Column="8" Grid.Row="1" Text="{Binding ElementName=parameterSlider, Path=Value}" Foreground="{DynamicResource ForegroundBrush}"></TextBlock>
    </Grid>
</UserControl>
